
function loadUrl (text,url) {
	url = ""+ url;
	var _t = "_t="+new Date().getTime();
	if (url.indexOf("?") == -1) {
		url  =url + "?" +_t;
	} else {
		url  =url + "&" +_t;
	}
	$("#mainBox").html("正在努力加载中...");
	if(text){
		$("#main .titleText").html(text);
	}
	$.get(url,null,function (data) {
		$("#mainBox").html(data);
	});
}


/* 全选/全不选 */
function checkAll(boolValue) {
	var allcheck = document.getElementsByName("choose");
	for (var i = 0; i < allcheck.length; i++) {
		if (allcheck[i].type == "checkbox") {
			allcheck[i].checked = boolValue;
		}
	}
}
function selectAll() {
	var checkbox1 = document.getElementById("checkbox1");
	if (checkbox1.checked == true) {
		checkAll(true);
	} else {
		checkAll(false);
	}
}

/*全选 反选按扭*/
//全选
function selectbtnAll() {
	selectAll();
}
//反选
function checkOther()
{
 var object = document.getElementsByName("choose");
 var length = object.length;
 for (var i = 0; i < length; i++)
 {
     if(object[i].checked)
     {
      object[i].checked=false;
     }
     else
      object[i].checked="true";
 }
}